package jweslley.ContestVolumes.VolumeC;

import static java.lang.Math.abs;

import java.util.Scanner;

import jweslley.Problem;
import jweslley.Problem.Status;

/**
 * http://icpcres.ecs.baylor.edu/onlinejudge/external/100/10055.html
 *
 * @author  Jonhnny Weslley
 * @version 1.00, 16/10/2008
 */
@Problem(Status.Accepted)
public class HashmatTheBraveWarrior {

	public static void main(String[] args) {
		StringBuilder out = new StringBuilder();
		Scanner in = new Scanner(System.in);
		long soldiers, enemies;		
		while (in.hasNext()) {
			soldiers = in.nextLong();
			enemies = in.nextLong();
			out
			.append(abs(enemies - soldiers))
			.append('\n');
		}
		System.out.print(out);
	}

}
